package com.wgworkshop.pems.service;

import com.wgworkshop.pems.model.WorkModel;
import com.wgworkshop.pems.model.WorkPreviewModel;
import com.wgworkshop.pems.model.WorkView;

import java.util.List;

/**
 * 作品服务接口。
 * Created by wlc on 2017/8/31.
 */
public interface WorkService {
    WorkModel save(WorkModel workModel);

    void delete(Long id);

    WorkModel findOne(Long id);

    WorkModel update(Long id, String name);

    boolean exists(Long id);

    void checkExists(Long id);

    WorkView getWorkView(int week, int classNum, int shift);

    List<WorkPreviewModel> getWorkPreview(int week, int classNum);
}
